﻿@model DotNetCoreStudy.Page.Models.Employee

<tr>
    <td>@Model.FirstName</td>
    <td>@Model.LastName</td>
    <td>@Model.Gender</td>
    <td>@(Model.Fired ? "是" : "否")</td>
    <td>
        @if (!Model.Fired)
        {
            <a asp-page="EmployeeList"
               asp-page-handler="Fire"
               asp-route-departmentId="@Model.DepartmentId"
               asp-route-employeeId="@Model.Id">Fire</a>
        }
        &nbsp;
        <a asp-page="EmployeeList"
           asp-page-handler="Edit"
           asp-route-departmentId="@Model.DepartmentId"
           asp-route-employeeId="@Model.Id">Edit</a>
    </td>
</tr>
